import warnings

warnings.filterwarnings('ignore')
from ultralytics import YOLO

if __name__ == '__main__':
    # model = YOLO(r"E:\experiments\YOLO-DDD\yolov8l-ddd-yolo\trainexp8\weights\best.pt")
    # model = YOLO(r"E:\experiments\SDB_9K_B7_5000\yolo-ladcs\trainexp6\weights\best.pt")
    model = YOLO(r"E:\pycharmProjs\yolo-ladcs\runs\train\exp74\weights\best.pt")
    model.val(data='dataset\DDD_YOLO.yaml',
              split='test',
              imgsz=640,
              batch=16,
              # rect=False,
              save_json=True,  # if you need to cal coco metrice
              project='runs/val',
              name='exp',
              )
